Fixing bug with localhost in url.