fix a buf