fix partitioning.