Fixed subshell bug