eliminated crash when using some combinations of weak refs.