fixed bug in RegionFinder causing crash