Fix yanking/pasting from clipboard