add the knapsack's bug