Bugfix for urls with ports