Correct initializations of plugins and correct initialization of templates