rescue_attributes function

Rescue lost attributes