domain check fix when overriding domains