fix crash when header field is a space