fix passing headers to response