Fix list serialization bug