add index to lectures
fix bug index generation