Attempt to fix shared memory crash