Fixed bug in index generation / startup procedure.