fix FF compatibility