fixed issue in run_command