fix plugins manager is not defined