fixed mex_cuda