Fixed crashing with jsons