minor fix in mean script