Fixed a bug in the url building where the wrong server was used