Fixed a bug with brackets