Fix multiple process bugs