Fix computation of mean in autoAbort