Firefox event bug fixed