Fix rank_for methods