handle case when error geting url