Trying to fix an error in an addon

I’m trying to fix a bug in an addon that makes you get knocked down when an antlion guard charges you. Here’s the problem; After you get knocked down, the player’s view gets screwed up, and it can only be reset by killing yourself. Here’s the addon:

I’m not very experienced with lua, so if anyone could help I’d really appreciate it.

Apparently there’s a fixed version:
I still have the broken view though.