fixing json issues