fix crash on first load of pluginManager