fix location error