Remove extra semicolons at the ends of some lines.