fix typo in writer