bugfix for index.py