fixing node attribute reference