fixed known bug with prevent default in firefox