fixes incompatible event details in firefox