fix wrong attributes error