Fixing registration in AppKernel