fix bug in mean of alpha update.