Fix search infinite loading