Fixed attribute row rank calculation.