fix some json errors