fix params overwrite bug and missing stdout set on exec