fix a bug of port