fix overfeed bug