Fix typo in how port var is defined