fix minor switching bug introduced by 07ea2e