buf
bug fix