Fix clipboard functionality