Fixed bugs in html