restore original writer