fixed bad ranks