diff --git a/irdb-libs/libIRDB-core/src/fileir.cpp b/irdb-libs/libIRDB-core/src/fileir.cpp
index 8fc20242c733441d99a2389e4316ae56d5f687c6..574779ae1e5db83f45e2c408a638a7ab8b903bd7 100644
--- a/irdb-libs/libIRDB-core/src/fileir.cpp
+++ b/irdb-libs/libIRDB-core/src/fileir.cpp
@@ -715,7 +715,8 @@ void FileIR_t::writeToDB(ostream *verbose_logging)
                 	auto operands = p_disasm->getOperands();
                         auto hasTarget = insnp->getTarget() != nullptr;
 			auto isIndirect = !operands[0]->isConstant();
-                        assert(isIndirect == !hasTarget);
+			if(isIndirect) 
+				assert(!hasTarget);
                 }