Various fixes to the region editor