bugfix error when setting a role without being logged in