Fix updateRank script.