Fix shm-snapshot compatibility