fix bugs for week logs