bugfix for copybutton