Fix mistakes

* Remove unused key.
* Fix bad offset.
* Fix commented out code.
* Fix columns in indexes.