fix done buffer