Replace bad var name with updated reference