fixed some bugs with the foods edit routes