diff --git a/alib2data/src/common/wrapper.hpp b/alib2data/src/common/wrapper.hpp
index 4528d5e727cd4c865ce6337c74c7ce316b01132f..73cee0919b462ceb85e09f0d7998c5c8c2a4bca3 100644
--- a/alib2data/src/common/wrapper.hpp
+++ b/alib2data/src/common/wrapper.hpp
@@ -45,26 +45,32 @@ public:
 	}
 
 	bool operator>=(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return true;
 		return *(this->data) >= *(other.data);
 	}
 
 	bool operator<=(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return true;
 		return *(this->data) <= *(other.data);
 	}
 
 	bool operator>(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return false;
 		return *(this->data) > *(other.data);
 	}
 
 	bool operator<(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return false;
 		return *(this->data) < *(other.data);
 	}
 
 	bool operator!=(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return false;
 		return *(this->data) != *(other.data);
 	}
 
 	bool operator==(const wrapper& other) const {
+		if(this->data.get() == other.data.get()) return true;
 		return *(this->data) == *(other.data);
 	}