Fix multiprocess freeze issue introduce in previous patch.