clipboard editing fixes