fix bug to allow adding of regions.