fix delegation autocomplete
Merge pull request #717 from xi/feature-fix-delegation-autocomplete

delegation autocomplete