fixed a buffer transfering bug