Fix an issue with various values not updating further in the loop [MJ-562]