bug fix with ref values not propagating to values aleady visited