fixed a bug when the header is multiline