Fix appKernel bug