diff --git a/src/runtime/c/pgf/vector.h b/src/runtime/c/pgf/vector.h
index dd86869b6..edf0fc6e5 100644
--- a/src/runtime/c/pgf/vector.h
+++ b/src/runtime/c/pgf/vector.h
@@ -93,8 +93,8 @@ public:
iterator begin() { return iterator(ref::from_ptr(&v()->data[0])); }
iterator end() { return iterator(ref::from_ptr(&v()->data[v()->len])); }
- bool operator ==(vector& other) const { return offset==other.as_object(); }
- bool operator !=(vector& other) const { return offset!=other.as_object(); }
+ bool operator ==(vector& other) const { return offset==other.offset; }
+ bool operator !=(vector& other) const { return offset!=other.offset; }
bool operator ==(object other_offset) const { return offset==other_offset; }
bool operator !=(object other_offset) const { return offset!=other_offset; }