update to avoid crashes by wrongfully loaded ranks.txt