Fixed a small bug that occur while continuos allocate and deallocate.