Fix rank_average argument name