Fix gif searching
Make gif searching more stable