Fix the bracket problems