Fix bug with brackets