Update main.py

fix of setting the indexing template