fixed firefox event bug