switch: fix the diagnostic 'console'