fix for multi processes