Spawn Menu Search Bar Error

On my server I receive this error when I attempt to search in the search bar.



[ERROR] gamemodes/sandbox/gamemode/cl_search_models.lua:34: bad key to string index (number expected, got string)
  1. error - [C]:-1
   2. __index - lua/includes/extensions/string.lua:274
    3. func - gamemodes/sandbox/gamemode/cl_search_models.lua:34
     4. GetResults - lua/includes/modules/search.lua:29
      5. RefreshResults - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:81
       6. OnEnter - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:17
        7. unknown - lua/vgui/dtextentry.lua:104


[ERROR] gamemodes/sandbox/gamemode/cl_search_models.lua:34: bad key to string index (number expected, got string)
  1. error - [C]:-1
   2. __index - lua/includes/extensions/string.lua:274
    3. func - gamemodes/sandbox/gamemode/cl_search_models.lua:34
     4. GetResults - lua/includes/modules/search.lua:29
      5. RefreshResults - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:81
       6. unknown - gamemodes/sandbox/gamemode/spawnmenu/creationmenu/content/contentsearch.lua:18


Possible screw-ups:
I recently added the gamemodes: base and sandbox, from the Garry’s Mod repository on Github in an attempt to fix another error with sTools (< Resolved by other means)

Remove the gamemodes from your server and run a server update.