Spearman bug fix