remove error field from writer