Fix a reference cycle