Fix im.switch_state (broke in previous cleanup commit)