Compatibility fixes for Chrome