Fixed shared memory initialization bug.