fixed parsing json files