fixed event handling in FF