fix in stats computation