Fix invalid pointer + add some stdout info when eating