fix model attributes error