[2.2] Fixed so that the cost is minimized when combining three plans