Fix incorrect partitioning.