fixed issue with Role not being returned when getting repo