Fix event callbacks.