Fix syntax for event object