correcting the header behavior