Fix case where a ranking is empty or nearly empty.