fix bug in getHeaderValue()