Fix calculation of zscore.