fix buf ?