fix logic to assign the sticky partitions number