Bug fix: rankAssignments