Fixed generation of the theme index files