Fixed missing event causing to not work in firefox