fixed event object problem with firefox
fixed event object problem with firefox