fix buf arg