base url empty string bug fix