fix for printing newline with printi. sometimes it would print a random character before