fix for rank calculation!