Prevent error using domains before theme initialized