fix bug caused by json lib change