Actually, my controller returns me an error with getLegacyKernel function (funciton unknown)