For 1044, better behavior of copy button and funtion depending on the content of working and ref sets