Correctly close brackets