Correct serialize/deserialize confusion