to-ports fix