Fixed bug in zscore method