Some compatibility changes for chrome