fixed bracket bug