Fix switching modes via command.
Previously didn't apply mode-specific configuration.