bug fix in stats printing