workaround for copy mode crash