Fixed RegionCode Bug