Fixed to set event handlers.