fix search input paste bug