fixed the rank index asshold