Change buf to Buf.