fixed cudaMemcpy2D error