Fix huge bug copying tcp port.