bugfix for event.preventDefault in firefox