Fix missing end brackets