Resolved an issue with a weakreference going stale.