Fixed exception on bad json files