Fix the relationship between rank and peer