Fix debug info for indexer

fixes #8132