the repeated deallocation bug was fixed