fix port variable