fix conversion errors from js.el. typescripton-> json