diff --git a/include/core/state_block/has_state_blocks.h b/include/core/state_block/has_state_blocks.h
index b1af55f7b8c6adafc23d9ef4139b154537f0f9ff..a2d6e1e767da2bb800e5f83146a596ea8e35535a 100644
--- a/include/core/state_block/has_state_blocks.h
+++ b/include/core/state_block/has_state_blocks.h
@@ -17,7 +17,7 @@ namespace wolf
 {
 
 /// State of nodes containing several state blocks
-typedef std::unordered_map<std::string, Eigen::VectorXd> State;
+//typedef std::unordered_map<std::string, Eigen::VectorXd> State;
 //typedef std::string StateStructure;
 
 
@@ -220,6 +220,7 @@ inline void HasStateBlocks::setState(const VectorComposite& _state, const bool _
         const auto& sb = getStateBlock(key);
         if (!sb)
             WOLF_ERROR("Stateblock key ", key, " not in the structure");
+        assert (sb && "Stateblock key not in the structure");
 
         sb->setState(vec, _notify);
     }