fix(Process Variables): move object creation into loop

Related to: #CIS-44