Bugfixes for autocompleted entries while editing departments.