Fixed event issue in firefox