potential fix for the double-click search issue