Fix bug in indexer.