fixed task-edit functions