fixed issue with extra slash in URLs (issue 26)