Fix attribute reference