Fix events for dropdown.