compensate for mozilla bug