Fixed WeakReference issues.