fixed small bug in new_location.py