fix a typo in the event handler script