fix food generation bug