So today, I was walking to a table to get him some food. Now the table is pretty high up so he knows when he's getting food, because I have to reach up for the food. All of a sudden he kinda jumps up right in front of me and brings his claws down into my leg, and it hurt like crazy so as a knee jerk type of reaction, I kinda pushed him and he fell. He didn't make any noise and he seems to walk/run fine. I apologized to him for a good 10 minutes by giving him really tasty treats and belly rubs (He rolled over himself.) What can I do to stop him from doing this, because I'm afraid that one day he'll do this and actually tear into my skin, which he almost did. He's usually a good puppy and will sit patiently for his food, but sometime he gets a little too excited and scratches me.