fixed shared memory error