fix unclosed tabs