fix error detection in region file processor.