fix tbeam header in format3 and 4 output files