fix header parsing when on multiple lines