parser: Fixes for copy code