fixing saved model attributes bug