fix unterminated statement