Fixed more cross-browser compatibility issues.