Corection of memory wasting