properly set linebuffer.count