fixed missing string writer

fixed missing StringWriter bug