fix backend counter manager + add more triming on middleware address
Merge branch 'hotfix/0.7.11'