Fix paste event.