Fixes double-click search bug