Fixing htnl bug