Bug fix

Dealing with URLs containing ports