fixed a buf