fix crash in add food