Fix problems of kernel.