fixed a problem with the json_decode