Fixed bug in creating html end tag comments