Fixed something in the writer