Fixing small errors in the OpenCL code.