diff --git a/modules/io/src/formatted_line.hh b/modules/io/src/formatted_line.hh
index f42bcac73aaec7166026bb36b530087fe0258ec8..8eeb07ed0a6caac9945ef603d038fb10d38aaef5 100644
--- a/modules/io/src/formatted_line.hh
+++ b/modules/io/src/formatted_line.hh
@@ -195,7 +195,7 @@ public:
   
   char& operator[](size_t index)
   {
-    assert(index<_len_);
+    assert(index<len_);
     return data_[index];
   }
 private:
diff --git a/modules/mol/base/src/impl/entity_impl.cc b/modules/mol/base/src/impl/entity_impl.cc
index 8b13c433fdfc368904fc663ccf79f410e879d933..c7eb101630db5e9723d848b50fa4abec29d3f2f7 100644
--- a/modules/mol/base/src/impl/entity_impl.cc
+++ b/modules/mol/base/src/impl/entity_impl.cc
@@ -891,7 +891,7 @@ EntityView EntityImpl::do_selection(const EntityHandle& eh,
   LOGN_DUMP("entering chain loop");
   for (ChainImplList::const_iterator 
        ch_it=chain_list_.begin(); ch_it!=chain_list_.end();++ch_it) {
-    LOGN_DUMP("checking chain " << ch_it->GetName());
+    LOGN_DUMP("checking chain " << (*ch_it)->GetName());
     c_added = false;
     tribool c = always_true ? tribool(true) : qs.EvalChain(*ch_it);
     if (c == true) {