Fixes parsing of json