corrected executeClosingBracket