fixed a bug with multiple click on search