Fixed wrong usage of weak references.