fix a mistake while compute e-statis