some fixes for mozilla