fix bug for kernel-solver.