Fixed node references as pointed out by @imaginator