Fixed isinstance(url, ...)