Fix hiding events for Chrome