fix core from not decoding json properly.