fix a bug of detect opencl