Bug corrected: Accessing a previously deleted pointer.