fix for events not triggering in firefox