Fixed rank/level bug