fix bug with content negotiation