fixed bugs on index.html