fix readbuf Bug