Small deallocation bug corrected