Fix bug with repository role