fix bug about subtasks inheritance