bug in detecting default domain