fixed task kind in new chain and editing bug