Fixed issue with newline and archiving