Printing statistics without bug