Can you tell us "grub" is? Is it the Food Entity? If yes: Have you defined a pointer for it, like ENTITY* grub?