Fix a crash on dispose