fix partitioning