opencl minimization bug fixed