Fixed possible recipe crashes.