Fixed events bug in FF
Fixed events bug in FF