hack to make sure we don't end up with nested WeakRefs