memory: fix for multi process support