fix getRegionByLocation bug
debugging