Fixed directories shared memory issue