Corrected the ranking in spearman correlation coefficient calculation