Fix Firefox compatibility