fix FF bug