fix hostname match