Fixed problem with WeakReference.