fixed template insert bug in index html code