fixed bug with split headers