try to fix weird output with buffers