Fixed bug in partitions_list