fix fetch json when optionals fields not present