port variable fix