fixed bugs with firefox