Fixed problem with mean.