Fix knapsack tab rendering. Courtesy to @radfast