fixed tellg warning