Add missing closing tags.