Fix accept event handling.