install_events bug fix