shared mem fix 2