add defensive check against recipes that change types