fix SetWriter