Remove extra semicolons at the end of some lines.