BugFix to creating ranks