fixed mean_normalization bug (w/o end;)