Fix Firefox rendering bug