Fix bug #121229 using MAIN's statement terminator