fixed task's mark_finished