fix get header bug.