Fixed bug on search