repair template on index.html