fix GPU  memory copy bug