browser compatibility fix