Fixed wrong var used in findMatchingRecipe. Fixes #1206