fix bugs
Merge pull request #84 from spostman/spostman_bugfix_missingEventMsgs

fix a bug.