paste event bugfix