Fix the url that is undefined