fixed some bug and add the daily stats