fixed logic mixup when hitting node for body but head hadn't been made yet