fix the serialization of list data