fix unclosed condition #7