FIxed issue with ranks being wronFIxed issue with ranks being wrongg