fix attribute reference to name