Correct rank numbers so that it displays equal ranks correctly