Fixed an event error