fixed some bugs when entering ingredients that don't exist