fixing node variable renaming bug