Fixes bugs in html