fix: tasks should not be executes multiple times in non-async mode