fixed event object problem with firefox