fix bug in the computation of rank
very difficult to catch in unit-tests because this is very noisy
1 file changed