fix json issues