fix one more compiling error

but this has to be pretty much rewritten, because now we also have rank_0 and max_rank_0. Oh no :(