Fixed firefox event-handling problem.