bug fix for span_header