backport fixes for initialization of digi modes.