Fix syntax error in event definitions