fix a crash when max food was not defined