Fixed a bug in the method IngredientsToSubstitute