fixed single kernel bug