fix error if @url_hash is passed