Fixed wrong syntax for new event handler attaching