fixed redo indexing problem