Fix the minor bugs on OpenCL kernel.