minor bugfix for "rank" command crash