bracket bug fix