Remove illegal semicolons