fix minor issue on search