Add missing close brackets