firefox compatibility fixes