fix multiple processes