fix copy/paste interaction with system clipboard