fix new buf