fixed lswitch index bug
Merge pull request #4 from mpath/fixlswitch

fixed lswitch index bug (mpath)