fixed a bug on index.html