Fixing malloc in region.