Fixing the index template