Fix bug where some users' ranks were displayed incorrectly

Closes #79.