Fixed bug when saving newlines