fix a minor problem in Process, where minimum wait time could be longer than timeout time