fixing json errror