add missing closing tags