Trying to fix location.path()