fixed a bug in statistics (the last date was not printed)