bugfix in SwitchPool() usage