Fix unmatched region and enregion