bugfix for copy/cut in paint mode