fixed save_text()