fixed count_tasks. fixed logs view.