fix allocation of logical partitions