fix bug in Writer: include idea from writer