fix output before header