fixed firefox event undefined error for mouseout event