fix a mistake in the previous commit (ShellCommand function merging)