fixed bugs on firefox