bugfix when saving text from other IO