fix compilation
completed indexer