fix for copy/paste bug