Fixed padding bug in RegionFile.