shared mem extern fix