fixed bug with brackets