Big rank miscalculation bug fixed