Fixing bug caused by headers with array values.