browser compatibility fixes