Fix bug where the last task does not show