Improve browser compatibility