deserialization stream in restore is put in final