Fix browser compatibility