Fix issue in port configuration