fix compiler warning for getUrl
counter moved
Merge pull request #331 from rostafiychuk/geturl

Fix compiler warnings for getUrl