Fixed pointer error in region allocation.