fixed strange behavior for unterminated strings