Stop search from crashing