fixed a minor bug in toServerURL
bugfix invalid urls when adding and removing