Fixed event prevent default issue in firefox