fix multiple cmds execution.