Fix typo in event code