Fix writing.