attributes error fixed