fixed dangling node reference