Fix a bug. Prevent excess Dispose.