Fix new process_history return logic.