Fixed a major problem. Ensures clean os_lines on every write.