Potential scope issue with getting and altering loops

Try trials.finished = true. See here: Loop.finished=true No longer working