Added fix to degenerate spearman/pearson cases