restore_object to check source attributes as well