fix mistake with statistics