fix bugs of subshell when parsing to tree