Fixed typo in event handlers