fix preventing default events in firefox