fix PermissionsManager Instancing, define as serviceFactory