Fixing the bug in diet