Fix Firefox bug