Bug fixes and mods to the region system