Bug Fixes for FireFox

Defined event