Fixed addSubtask and delete