bug fix in opencl support