Fix index.html generation