Fixed bug with port number