fixed getPartitions