Fix a bug with port number handling