Fixes errors when doing simple search

Caused by me