Cannot create a recipe by grams

With the new "recipe" feature in Nutrition, when I try to use the "gram" serving size, it always gives me an error. I switch it to "kgs" and there is no issue.