Fix to jsonwriter