Fixed a writer error.