Fix partition count.