fix response headers serialization