Correct initialization of plugin object