delegation autocomplete

Thsi fixes the autocomplete on delegation (see #280)