Fixed bugs related to incorrect number of slashes in URLs.