fixed wait_task_completion after switching to named indexes.
Merge pull request #7 from frapposelli/develop

fixed wait_task_completion after switching to named indexes.