fixed loading of plugin