[fix] index generation