Fixed extension bug preventing wildcard domain matching in certain cases