Hacky fix for the shared memory crash.