correct some syntax errors in cl kernel for mac