Fix KVO deallocation bug