fix output of script