fix minor switching bug introduced by 07ea2e

I dunno, but it's unrelated to this PR