add a guard against deserialization failure