Fixing a bug in the OpenCL kernel.