Fixing broken autocomplete