Fix bracket bug