Dynamic port fix