Fix invalid port origin