fix node relations bug (thanks Dave!)