fixed the statistics based on new JSON api
Merge branch 'CDK-108'