Fixed bug with HTML element