fixed invalid pointers when compacting deletion markers

fixed invalid pointers for updates