Fix bug with brackets and missing operators.