fix assigning an event handler