tweaked error check
removed p statement
Merge pull request #148 from acjetnut/fix-keyword-bug

tweaked error check