Fixed bug with partitions overlapping