fix bug of port number parse.