fixed When region was empty
fix test was failing when region was empty