handle empty url_hash