Fix event syntax error