Bug fixed for multiple brackets