chore(tasks): fix task refactoring