fixed event listener bug for FF v6-