bugfix for 1d mean computation