fixed a bracket bug