fixing a typo preventing the event from firing