Chrome compatibility fix