mod/taskchain fix adding new tasks to a chain