Fixed knapsack bug where li elements remained invisible