fix bug in format index.html