Fix some issues when trying to use recipe.