Fixing misplaced brackets