Fixed the bugs which transfering data error

Signed-off-by: servanter <fengshang@126.com>