fix the problem of appointment statistics