Fix URL being reset