don't crash when pasting to clipboard does not work