solved bug at pearson calculation