bug fix in foodstock model