#377 fix the issue in matchDomain method
#377 fix the issue in matchDomain method