- fix producing invalid json