Fixed behavior of Clipboard function.