Fixed serialization issue when serializing quotes