fixed a bug in parsePartitions