fix setting rank for old users