fix unclosed code elements.