fixed lswitch index bug

Sup.