correcting improperly terminated statements