fix iteration variables to get transient name which is the index of the array
Merge branch 'pr-1251-clear-temporary-data' into branch-3.8.14.1-dev