Clipboard and some fixes