Fix not writing some texts.
Remove debugging code.