fix a bug with main.html