fix error in region code