- fix typo
- factorize lset and lindex index