fix collection's serialization