Correcting Memory Persistence