Fix problem with formatting partitions