shared mem fix 4