Fix call to undefined method Model::getKernel()