Fix switching between internal mode and regular consoles.