Fixing autocomplete behavior on add dialog.