mod/taskchain fix error returning from adding multiple tasks to a chain