location error fixed