fix writer