Bug fixes for closing tag check.