fixed minor bug with port