add wait_task ref to wait indexing section