fix hang in wait_for_think_finished