actions field "undefined" bug fixed

avoid modifying original "flows" object