Deallocation bug fix.