fix corrupt multi line prints bug (1st line repeated)