Fix error on the event