fix attribute reference