diff --git a/src/Attribute.cpp b/src/Attribute.cpp
index bcd783b..1ef33e2 100644
--- a/src/Attribute.cpp
+++ b/src/Attribute.cpp
@@ -83,7 +83,7 @@ void Attribute::read(istream& in)
       case Type::Bool: minValue.setBool(s2=="true"); break;
       case Type::String: minValue.setString(s2); break;
    }
-   in.get(); getToSpace(in,s); s2=unescape(s);
+   getToSpace(in,s); s2=unescape(s);
    switch (type) {
       case Type::Int: maxValue.setInt(atoi(s2.c_str())); break;
       case Type::Double: maxValue.setDouble(atof(s2.c_str())); break;
diff --git a/src/operator/Tablescan.cpp b/src/operator/Tablescan.cpp
index 799087c..5da13c5 100644
--- a/src/operator/Tablescan.cpp
+++ b/src/operator/Tablescan.cpp
@@ -56,6 +56,7 @@ bool Tablescan::next()
       }
    }
 
+   table.io.clear();
    return true;
 }
 //---------------------------------------------------------------------------
