fix: missing a call to the weakref.