fixed a bug generating daily report