Fixes loadPlugins calls