fixing port number problem