fix semicolon insertion