Fix response serialization problem