Fixed double-click issue for auto complete.