fix for statistics relateates issues

https://wso2.org/jira/browse/APPM-222