bug fix refreshUrl if the url is empty