fixes bug when no tasks exist for week