correcting improperly terminated statement