fixed two sublte bugs in the CL kernels