fixed another parse_header bug