fixed typo in mean() introduced in last commit --KW