multi domain match bug fix