[Plugin][PluginLoader] Fixed few bugs.