changing wrong attribute reference