cmd_run bug fixed