fix the exercise of balance parentheses