Fix search box autocomplete, fixes #5185