Modify 'proc_cmd' avoid invalid command