Corrections on initialization of plugin