Fixed problems with reindex.