Fixed bug in getMinimumRequiredIngredients