Fix browser compatibility issues.