Fixes chrome compatibility issues.