fix a bug with LabelType in Port