fix  buf