Fixes retain cycle that caused crash.