fix some json issues