Fixed event syntax error issue