Fixed a bug found during testing: - If it is the first iteration, `new_var` should be initialized to 'InitValue'.