count wasn't being released after modification