Problem with printing headers fixed
Finished hotfix fix_head_print.