append semicolon to unterminated statements