fix printing of first line