Fixed bracket bugs