fix bracket bug