[FIX] Fixed a problem with uninitialized memory of the rank dictionary w...

...hen calling resize.