Modify the way of watching spawned process, but this is not perfect...
Fix fetch number.