fixing json issue