Fixed a command execution bug