Fix parantheses balancing