shared mem fix