Fix bug in region validation.