He looks like such a cutie pie.. He was probably not in the mood for the hat? Or maybe he had a feeling about the lady that was trying it on him... sometimes dogs sense things that we don't?? Good Luck... Just keep an eye on him. You are doing a good job and he will learn not to do that just stay consistant.