Fixed shared memory error