Issues #230: Cleanup the variable for each iteration

This fixes the issue #230