corrects printing of header