Fix loading bug in PluginLoader