fixed working with nodes

now the correct entity type (node) is used and reference is fetchable