Nodereference bugfix