Fixing how pluginLibrary is set.