Shared memory fixes.