Fixed some browser compatibility issues.