multi-process bug fix