Fix Crash on search