Fixed bug at search